Skip to content

feat: Implement CRS parsing#16

Merged
kylebarron merged 16 commits intomainfrom
kyle/crs-parsing
Jan 27, 2026
Merged

feat: Implement CRS parsing#16
kylebarron merged 16 commits intomainfrom
kyle/crs-parsing

Conversation

@kylebarron
Copy link
Member

@kylebarron kylebarron commented Jan 27, 2026

Change list

  • Implements the .crs attribute on the GeoTIFF.
  • For simple CRSes that are described by an EPSG code, we return CRS.from_epsg(code)
  • For custom CRSes that are described by custom elements in the GeoKeyDirectory, we use a (mostly Claude-written) implementation to parse the custom elements and construct a PROJJSON file.
  • Adds tests for CRS equality with rasterio
  • Adds tests for custom CRS equality with rasterio using feat: Add NLCD example geotiff-test-data#16
  • Adds tests using jsonschema that the PROJJSON created validates against the PROJJSON json schema.

@kylebarron kylebarron merged commit 7ec82e4 into main Jan 27, 2026
5 checks passed
@kylebarron kylebarron deleted the kyle/crs-parsing branch January 27, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant